package com.cjh.wechat.websocket.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cjh.wechat.commom.pojo.NotifyGroup;

public interface NotifyGroupDao
{
    int deleteByPrimaryKey(Integer no);
    
    int insert(NotifyGroup record);
    
    int insertSelective(NotifyGroup record);
    
    NotifyGroup selectByPrimaryKey(Integer no);
    
    int updateByPrimaryKeySelective(NotifyGroup record);
    
    int updateByPrimaryKey(NotifyGroup record);
    
    List<NotifyGroup> findByGid(@Param(value = "gid") String gid, @Param(value = "startNum") Integer startNum, @Param(value = "endNum") Integer endNum);
    
    int findByGidSum(String gid);
    
    int isExist(@Param(value = "gid") String gid, @Param(value = "fromUid") String fromUid, @Param(value = "type") Integer type);
    
    void updateByGidSelective(NotifyGroup notifyGroup);
    
    int deleteByGid(String gid);
    
}
